package cn.net.xyan.pay.core.entity

import javax.persistence.*

/**
 * Created by zarra on 2017/3/22.
 */


@Entity
@Table(name = "hospitals")
data class Hospital(@Id var hospitalID: String? = null, var title: String = "NoTitle")

@Entity
@Table(name = "payVendor")
data class PayVendor(@Id var vendorCode: String? = null, var title: String = "NoTitle")

@Entity
@Table(name = "payVendorProfile")
data class PayVendorProfile(@Id var profileID: String? = null,

                            @ManyToOne() @JoinColumn(name = "payVendor")
                            var payVendor: PayVendor? = null,

                            @ManyToOne() @JoinColumn(name = "hospital")
                            var hospital: Hospital? = null) {
    var appID: String = ""
    var appSecret: String = ""
    var appKey: String = ""
    var enable:Boolean = true
}